package com.xinghai.common.utils;

import java.time.LocalDate;
import java.time.YearMonth;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class DataUtil {

    public static Map<String,Object> getCreateTimeParams(){

        Map<String,Object> params = new HashMap<>();
        params.put("beginCreateTime", DateUtils.getNowDateStart());
        params.put("endCreateTime", new Date());
        return params;
    }


    public static Map<String,Object> getCreateTimeParams1(String date){
        Map<String,Object> params = new HashMap<>();
        params.put("beginCreateTime", DateUtils.getMonthStartDay(date));
        params.put("endCreateTime", DateUtils.getLastMonthStartDay(date));
        return params;
    }

    public static Map<String,Object> getCreateTimeParams2(String date){
        Map<String,Object> params = new HashMap<>();
        params.put("beginCreateTime", date + " 00:00:00");
        params.put("endCreateTime", date + " 23:59:59");
        return params;
    }
}
